//
//  Family.m
//  OC3_继承课后作业
//
//  Created by dllo on 15/10/26.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "Family.h"

@implementation Family

//    Family里包含实例变量husband，wife，son，方法party，travel。

- (NSString *)husband
{
    return _husband;
}

- (void)setHusband:(NSString *)husband
{
    _husband = husband;
}
- (NSString *)wife
{
    return _wife;
}
- (void)setWife:(NSString *)wife
{
    _wife = wife;
}
- (NSString *)son
{
    return _son;
}
- (void)setSon:(NSString *)son
{
    _son = son;
}

- (id)initWithHusband:(NSString *)husband wife:(NSString *)wife son:(NSString *)son
{
    self = [super init];
    if (self) {
        _husband = husband;
        _wife = wife;
        _son = son;
    }
    return self;
}


@end
